//
//  FundDetail.swift
//  jiaoyi
//
//  Created by 易万军 on 2018/10/22.
//  Copyright © 2018 wjk. All rights reserved.
//

import Foundation
import ObjectMapper

//"enterprise_id": 120,
//"available_fund": 0,
//"frozen_trade_deposit": 0,
//"frozen_perform_deposit": 0,
//"frozen_payment": 0,
//"temp_frozen_fund": 0

struct FundDetail: Mappable {
    var id: Int?
    var availableFund: Int?     //可用的
    var frozenTradeDeposit: Int? //冻结交易保证金
    var frozenPerformDeposit: Int?//冻结履约保证金
    var frozenPayment: Int?     //冻结贷款
    var tempFrozenFund: Int?    //临时冻结资金
    init?(map: Map) {
       
    }
    
    mutating func mapping(map: Map) {
        id                      <- map["enterprise_id"]
        availableFund           <- map["available_fund"]
        frozenTradeDeposit      <- map["frozen_trade_deposit"]
        frozenPerformDeposit    <- map["frozen_perform_deposit"]
        frozenPayment           <- map["frozen_payment"]
        tempFrozenFund          <- map["temp_frozen_fund"]
    }
    
    
}
